package com.hxq.demo.adapter.obj;

import com.hxq.demo.adapter.*;

public class ObjClient {
    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        System.out.println(computer.readSD(sdCard));

        System.out.println("------------");

        TFCard tfCard = new TFCardImpl();
        SDAdapterTFForObj adapter = new SDAdapterTFForObj(tfCard);
        System.out.println(computer.readSD(adapter));
    }
}
